﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Core;
using System.Diagnostics;
using Configuration;
using System.Threading;

namespace proxy
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Starting core");

            if (Configuration.Configuration.LoadConfig())
            {
                Console.WriteLine("Configuration loaded");
                Core.Core core = new Core.Core();
                core.Listen();
            }
            else
            {
                Console.WriteLine("Error, invalid configuration file");
            }
            
            Console.ReadLine();
        }
    }
}
